package com.hl.sfzy.entity;

/**
 * 
 * @TableName fm
 */
public class Fm {
    /**
     * 编号
     */
    private Integer fmId;

    /**
     * 标题
     */
    private String fmName;

    /**
     * 音频路径url
     */
    private String fmMusic;

    /**
     * 图片名url
     */
    private String fmImg;

    /**
     * 课程类型
     */
    private Integer courseTypeId;

    /**
     * 编号
     */
    public Integer getFmId() {
        return fmId;
    }

    /**
     * 编号
     */
    public void setFmId(Integer fmId) {
        this.fmId = fmId;
    }

    /**
     * 标题
     */
    public String getFmName() {
        return fmName;
    }

    /**
     * 标题
     */
    public void setFmName(String fmName) {
        this.fmName = fmName;
    }

    /**
     * 音频路径url
     */
    public String getFmMusic() {
        return fmMusic;
    }

    /**
     * 音频路径url
     */
    public void setFmMusic(String fmMusic) {
        this.fmMusic = fmMusic;
    }

    /**
     * 图片名url
     */
    public String getFmImg() {
        return fmImg;
    }

    /**
     * 图片名url
     */
    public void setFmImg(String fmImg) {
        this.fmImg = fmImg;
    }

    /**
     * 课程类型
     */
    public Integer getCourseTypeId() {
        return courseTypeId;
    }

    /**
     * 课程类型
     */
    public void setCourseTypeId(Integer courseTypeId) {
        this.courseTypeId = courseTypeId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Fm other = (Fm) that;
        return (this.getFmId() == null ? other.getFmId() == null : this.getFmId().equals(other.getFmId()))
            && (this.getFmName() == null ? other.getFmName() == null : this.getFmName().equals(other.getFmName()))
            && (this.getFmMusic() == null ? other.getFmMusic() == null : this.getFmMusic().equals(other.getFmMusic()))
            && (this.getFmImg() == null ? other.getFmImg() == null : this.getFmImg().equals(other.getFmImg()))
            && (this.getCourseTypeId() == null ? other.getCourseTypeId() == null : this.getCourseTypeId().equals(other.getCourseTypeId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFmId() == null) ? 0 : getFmId().hashCode());
        result = prime * result + ((getFmName() == null) ? 0 : getFmName().hashCode());
        result = prime * result + ((getFmMusic() == null) ? 0 : getFmMusic().hashCode());
        result = prime * result + ((getFmImg() == null) ? 0 : getFmImg().hashCode());
        result = prime * result + ((getCourseTypeId() == null) ? 0 : getCourseTypeId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fmId=").append(fmId);
        sb.append(", fmName=").append(fmName);
        sb.append(", fmMusic=").append(fmMusic);
        sb.append(", fmImg=").append(fmImg);
        sb.append(", courseTypeId=").append(courseTypeId);
        sb.append("]");
        return sb.toString();
    }
}